﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paymentdetail.aspx.cs" Inherits="MxWeiXinPF.Web.weixin.jiaoshuifei.paymentdetail" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <link href="css/weui.min.css?v=2" rel="stylesheet" />
    <link href="css/jquery-weui.min.css" rel="stylesheet" />
    <link href="css/demos.css" rel="stylesheet" />
 <script src="js/zepto.min.js"></script>
    <script>
    </script>
    <style>
        .weui-cells {
            margin-top: 0px;
        }

         
    </style>
<title>应缴明细</title>
</head>
 <body ontouchstart>

      <div class="weui-form-preview">
      <div class="weui-form-preview__bd">
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">户号</label>
          <span class="weui-form-preview__value"><%=consno%></span>
        </div>
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">户名</label>
          <span class="weui-form-preview__value"><%=consname%></span>
        </div>
          </div>
          </div>

                    <%if (list!=null&&list.Count>0)
                      {
                          foreach (var item in list)
                          {
                              string yd = "";
                              if (!string.IsNullOrEmpty(item.rcvblYm) && item.rcvblYm.Length >= 6)
                              {
                                  yd = item.rcvblYm.Substring(0, 4) + "年" + item.rcvblYm.Substring(4) + "月";
                              } 
                              %>
     <div class="weui-cells">
          <a class="weui-cell weui-cell_access" href="javascript:;">
            <div class="weui-cell__bd">
              <p><%=yd%>   <%=item.meterType%></p>
            </div>
            <div class="weui-cell__ft"><%=Convert.ToDecimal(item.rcvblAmt)/100%>元</div>
          </a>

        </div>
     <div class="weui-form-preview" style="display:none">
      <div class="weui-form-preview__bd">
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label"></label>
          <span class="weui-form-preview__value"><%=yd%></span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">用水类别</label>
          <span class="weui-form-preview__value"><%=item.meterType%></span>
        </div>
  <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">上月表数</label>
          <span class="weui-form-preview__value"><%=item.meterLast%></span>
        </div>
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">本月表数</label>
          <span class="weui-form-preview__value"><%=item.meterThis%></span>
        </div>
           <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">用水量</label>
          <span class="weui-form-preview__value"><%=item.tPq%></span>
        </div>
           <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">单价</label>
          <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.aPrice)/100%>元</span>
        </div>
           <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">水费</label>
          <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.waterAmt)/100%>元</span>
        </div>
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">附加费</label>
          <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.schAmt)/100%>元</span>
        </div>
          <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">滞纳金</label>
          <span class="weui-form-preview__value"><%=Convert.ToDecimal(item.lateAmt)/100%>元</span>
        </div>
      </div> 
      </div>
                          

  <%
                          }
                      } %>
        <script>

            $(function () {
                $(".weui-cells").click(function () {
                    $(this).next(".weui-form-preview").toggle();

                })
            })
        </script>
</body>
</html>
